package com.test.config;

import com.baomidou.mybatisplus.extension.plugins.OptimisticLockerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by win on 2020/4/9.
 */
@Configuration
@MapperScan("com.test.mapper")
public class MybaitsPlusConfig {

    @Bean
    public OptimisticLockerInterceptor  optimisticLockerInterceptor(){
        return  new OptimisticLockerInterceptor();
    }
}
